function hitung_semua_klaim(){
	//buat total minta
	var layanan=eval($("#total_layanan").val());
	var obat=eval($("#total_obat").val());
	var tindakan=eval($("#total_tindakan").val());
	var lab=eval($("#total_lab").val());
	var radiologi=eval($("#total_radiologi").val());
	var abhp=eval($("#total_abhp").val());
	var elektromedik=eval($("#total_elektromedik").val());
	var rehabilitasi=eval($("#total_rehabilitasi").val());
	
	//buat tanggungan
	var layanan_awal=eval($("#total_layanan_awal").val());
	var obat_awal=eval($("#total_obat_awal").val());
	var tindakan_awal=eval($("#total_tindakan_awal").val());
	var lab_awal=eval($("#total_lab_awal").val());
	var radiologi_awal=eval($("#total_radiologi_awal").val());
	var abhp_awal=eval($("#total_abhp_awal").val());
	var elektromedik_awal=eval($("#total_elektromedik_awal").val());
	var rehabilitasi_awal=eval($("#total_rehabilitasi_awal").val());
	
	//alert(lab_awal);
	var total=layanan+obat+tindakan+lab+radiologi+abhp+elektromedik+rehabilitasi;
	var total_awal=layanan_awal+obat_awal+tindakan_awal+lab_awal+radiologi_awal+abhp_awal+elektromedik_awal+rehabilitasi_awal;
	//alert(total);
	var selisih=total_awal-total;
	$("#target_total_semua").html(number_format(total_awal, 0, ',','.'));
	$("#target_ditanggung_semua").html(number_format(total, 0, ',','.'));
	$("#target_selisih_semua").html(number_format(selisih, 0, ',','.'));
}

$(document).ready(function(){
	hitung_semua_klaim();

});